import { PetMingBaseItem } from "./PetMingBaseItem";
import { LoaderHelp } from "../../../../common/display/LoaderHelp";
import { ResFileConst } from "../../../resource/ResFileConst";
import { GlobalClass } from "../../../../../com/mui/core/GlobalClass";
import { ImagesConst } from "../../../resource/ImagesConst";
import { Language } from "../../../../../extend/language/Language";
import { Cache } from "../../../cache/Cache";
//class PetMingEatItem
    
    export  class PetMingEatItem extends PetMingBaseItem
    {
        constructor()
        {
            super();
            this.init();
            return;
        }

        /* internal  */init(): void
        {
            this._bg = new Object /* flash.display.Bitmap */();
            this.addChild(this._bg);
            LoaderHelp.addResCallBack(ResFileConst.PetMing, this.onLoadedHandler);
            return;
        }

        /* internal  */onLoadedHandler(): void
        {
            this._bg.bitmapData = GlobalClass.getBitmapData(ImagesConst.PetMingEatBg);
            return;
        }

        public /* override */ get toolTipData()
        {
            return Language.getStringByParam(54752, Cache.instance.petMing.swallExp);
        }

        /* internal */ /* var */_bg: Object /* flash.display.Bitmap */;
    }
